package com.ibm.spatiotemp.datamodel.config;

public class CacheServerMeta {
	public String serverip;
	public String port;
	
	public CacheServerMeta(){}
	
	/**
	 * schema: <code>serverip serverport</code>
	 * @param line a line read from init.conf
	 */
	public CacheServerMeta(String line)
	{
		String[] splitted = line.split(" ");
		serverip = splitted[0].trim();
		port = splitted[1].trim();
	}
	
	
	@Override
	public String toString() {
		return serverip+"-"+port;
	}

	public String getServerip() {
		return serverip;
	}
	public void setServerip(String serverip) {
		this.serverip = serverip;
	}
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	} 
}
